package com.woshua.utils;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

/*
* 文件工具类
* */
public class FileUtils {

    public static void print(String text)
    {
        try {
            FileWriter fileWriter = new FileWriter("D://test.txt", true);
            BufferedWriter bufferedWriter=new BufferedWriter(fileWriter);
            bufferedWriter.write(text);
            bufferedWriter.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
